home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************/
- /* MyGlobals.c */
- /* */
- /* See also MyHeaders.h */
- /************************************************************************************/
-
- #include "MyHeaders.h"
-
- /************************** */
- /* GLOBAL VARIABLES * */
- /************************** */
- short MainRetCode; /* main program return code */
- short WorkRetCode; /* work return code */
- short j,k,l,m,n; /* work variables */
- long worklong; /* work variable */
- Rect workRect; /* work variable */
- short workInt; /* work variable */
- Handle workHandle; /* work variable */
- Point workPoint; /* work variable */
- char workChar; /* work variable */
- TEHandle workTEHandle; /* work variable */
- ControlHandle workControlHandle; /* work variable */
- Str255 workStr255; /* work variable */
- Boolean workBoolean; /* work variable */
- GrafPtr workGrafPtr; /* work variable */
-
- EventRecord myEvent; /* from event loop */
- short myQuitFlag; /* flag to get out of event loop */
-
- WindowPtr workWindowPtr; /* pointer from FindWindow */
- short myMouseWhere; /* location (not Point) of mouse */
-
- char testChar; /* character for boolean operations */
-
- MenuInfo **myMenuHandle[4]; /* handles for various menus */
- Str255 menuItemName; /* name returned from menu select */
- short mymenuID; /* menu ID from MenuSelect */
- short mymenuItem; /* menu item number from MenuSelect */
-
- DialogPtr myDlogPtr; /* pointer to active dialog */
- DialogTemplate myDTmpl,**myDTmplH; /* template for active dialog */
-
- AlertTemplate myATmpl,**myATmplH; /* template for active Alert */
-
- struct wTblStruct /* space for some window info */
- windTbl[windMax]; /* table of many of the above */
- short windSub; /* subscript for window table */
-
- short myResRefNum; /* application res file ref num */
- short initResRefNum; /* res file ref num after inits */
-
- Rect myDragRect; /* outer bounds for dragging */
-
- Point nextTextPosit; /* Position of next text window */
-
- Rect destRect; /* for calculations of TE areas */
- Rect viewRect; /* for calculations of TE areas */
- RgnHandle workRegionH; /* work handle for TE redraw */
- Boolean firstPage; /* for printing */
-
- WindowPtr mouseWindPtr; /* pointer to window with cursor */
- Point locMouse; /* local coords of mouse */
- Point gMouse; /* global coords of mouse */
- short mouseWindPart; /* part code in window */
-
- SFReply workReply; /* work area for std file reply */
- short workRC; /* work area for open return code */
- short workPathRefNum; /* work area path ref num from open */
-
- short appMessage; /* startup message from Finder */
- short appCount; /* number of docs from Finder */
- AppFile appTheFile; /* file information from Finder */
- long appMenuLong; /* menu longword for menu proc */
- short appIndex; /* index pointer for GetAppFiles */
-
- THPrint prRecHdl; /* handle to print record */
- TPPrPort prPortPtr; /* pointer to print port */
-
- Boolean useColor; /* should we use color windows, etc */
-
- Handle theSnd; /* handle to sound resource */
- OSErr sndRC; /* return code from SndPlay */
- SndChannel *theSndChan; /* sound channel */
-
- ScrapStuff *scrapPtr; /* pointer to desk scrap */
- long scrapOffset; /* offset from beginning of scrap */
-
- ListHandle helpList; /* handle for List Manager */
- Point helpCell = {0, 0}; /* cell for List Manager */
- long helpLong; /* for help facility */
- Rect helpRect = {26,164, 214,398}; /* for help facility */
- Handle helpHandle; /* work handle for help */
- short helpPrev = -1; /* previously selected help item */
-
- struct versRec /* vers resource */
- **versRecHandle;
- Str255 versLongStr; /* long string from vers resource */
-